﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Sealight.Core.DataAdapter;
using Sealight.CoreAPI;
using Sealight.API.Ioc;

namespace Sealight.UI.WebUI.Services
{
    public class OrderService
    {
        #region Orders
        public static IList<order> SearchOrder(string keyword, DateTime? from, DateTime? to)
        {
            IOrdersService svc = IocContainer.Container().Resolve<IOrdersService>();
            var result = svc.SearchOrders(keyword, from, to);

            return result;
        }
        public static IList<order_product_variant> GetOrderVariant(Guid order_id)
        {
            IOrdersService svc = IocContainer.Container().Resolve<IOrdersService>();
            var result = svc.GetOrderDetails(order_id);

            return result;
        }
        #endregion
    }
}